<template>
	<ex-dialog v-model="visible" draggable :title="form.title"
	:width="700" >
		<template #default>
			<el-main class="nopadding" style="margin: 10px 20px -20px 20px;">
				<div style="width: 100%;float: left;line-height: 30px;text-indent: 2em;">
					{{form.content}}
				</div>
				<div style="width: 150px;float: right;line-height: 30px;margin-top: 20px;">
					<ex-label code="SysUser" :value="form.createUser" :bool="false"/>
					<ex-label format code="DATETIME" :value="form.createTime"/>
				</div>
			</el-main>
		</template>
	</ex-dialog>
</template>

<script>
import ExRelTable from "@/components/exRelTable/index.vue";
import ExLabel from "@/components/exLabel/index.vue";
import exDialog from '@/components/exDialog';

export default {
	name:"messageView",
  computed: {
  },
  emits: ['success'],
  components: {
	  ExLabel,
    ExRelTable,
    exDialog
  },
  props: {
  },
  data() {
    return {
      activeName: 'base',
      visible: false,
      form: {},
    }
  },
  methods: {
    //显示
    open(entity) {
      this.form = Object.assign({}, entity);
      this.visible = true;
      this.activeName = "base";
    },
  }
}
</script>

<style scoped>
h2 {
  font-size: 17px;
  color: #3c4a54;
  padding: 0 0 30px 0;
}

[data-theme="dark"] h2 {
  color: #fff;
}

</style>
